package team.hyznrj.studentsys.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Excel的批注对象
 * @author 郑泽锋
 * @date 2018年5月8日
 */
@Data
@AllArgsConstructor
@ToString
public class ExcelRemarkObject {
	public ExcelRemarkObject(int real_x,int real_y,String value,int x_off,int y_off){
		this.value=value;
		this.x1=0;
		this.x2=0;
		this.y1=0;
		this.y2=0;
		this.col1=3;
		this.row1=3;
		//批注大小自动调整
		// 3-3-6-12
		this.col2=(short) (6+x_off);
		this.row2=(short) (6+y_off);
		this.real_x=real_x;
		this.real_y=real_y;
	}
	/**
	 * 前四个参数是坐标点,后四个参数是编辑和显示批注时的大小
	 */
	private int x1;
	private int x2;
	private int y1;
	private int y2;
	private short col1;
	private int row1;
	private short col2;
	private int row2;
	/**
	 * 批注坐标
	 */
	private int real_x;
	private int real_y;
	/**
	 * 批注值
	 */
	private String value;
}
